<!--
 * @author: 十一
 * @since: 2024-08-28
 * 404.vue
 * @desc: new page
-->
<template>
  <div class="container">
    <img src="@/assets/images/404.png" alt="" style="width: 600px" />
    <div>
      <h1>404！</h1>
      <br />
      <p>您访问的页面不存在,你可以点击下面按钮返回主页。</p>
      <br />
      <a-button @click="handleToIndex" type="primary">返回首页</a-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";
const router = useRouter();
function handleToIndex() {
  router.push("/");
}
</script>

<style scoped>
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
</style>
